//
//  SQLiteFsTests.cpp
//  FuseSQLite
//
//  Created by Admin on 7/27/14.
//  Copyright (c) 2014 Admin. All rights reserved.
//

#include "SQLiteFs.h"

#include <gtest/gtest.h>

TEST(SQLiteFs, rootAttributes)
{
    SQLiteFs fs("");
    
    struct stat rootAttributes;
    fs.getAttributes("/", &rootAttributes);
    
    EXPECT_EQ(0777 | S_IFDIR, rootAttributes.st_mode);
    EXPECT_EQ(1, rootAttributes.st_nlink);
    EXPECT_EQ(0, rootAttributes.st_size);
}